Reset Cirrus device model `VRAM' whenever a VGA/SVGA mode switch occurs.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 10 May 2006 15:05:24 +0000 (16:05 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Wed, 10 May 2006 15:05:24 +0000 (16:05 +0100)
commitff712d654d6b6cb6deb0da538d7a8d9c4318e5d3
treeb27f77a1bdf6e5c3e973cf4d5b8f6a52afd215e5
parent3f37f70c65958ca6e34ed4ba96bd9a52e064ec16
Reset Cirrus device model `VRAM' whenever a VGA/SVGA mode switch occurs.

If you change the video resolution on a Windows XP guest such that it uses
fewer bytes of VRAM (either by using fewer bytes per pixel or by lowering the
resolution) then some window backgrounds will become corrupted.  This happens
because the Windows XP Cirrus Logic driver assumes that VRAM is initialized
to 0xff whenever the video mode switches between VGA and SVGA.

Signed-off-by: Donald.D.Dugger@intel.com
tools/ioemu/hw/cirrus_vga.c